chart_1();
function chart_1() {
    var myChart = echarts.init(document.getElementById('chart_1'));

    option = {
        legend: {
            top: 'bottom'
        },
        toolbox: {
            show: true,
            feature: {
                mark: {show: true},
                dataView: {show: true, readOnly: false},
                restore: {show: true},
                saveAsImage: {show: true}
            }
        },
        series: [
            {
                name: '面积模式',
                type: 'pie',
                radius: [15, 100],
                center: ['50%', '50%'],
                roseType: 'area',
                itemStyle: {
                    borderRadius: 8
                },
                data: [
                    {value: 38, name: '青县'},
                    {value: 32, name: '黄骅'},
                    {value: 30, name: '沧县'},
                    {value: 28, name: '泊头'},
                    {value: 26, name: '旅顺'},
                    {value: 22, name: '庄河'},
                    {value: 18, name: '瓦房店'}
                ]
            }
        ]
    };
     // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
    window.addEventListener("resize", function() {
        myChart.resize();
    });
}




